package com.wshx.qtbigdata.media2;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.TextView;

import java.io.File;

import mabeijianxi.camera.MediaRecorderActivity;

public class Main2Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        TextView textView= (TextView) findViewById(R.id.text01);
        TextView textView2= (TextView) findViewById(R.id.text02);
        Intent intent = getIntent();
        String videoUrl = intent.getStringExtra(MediaRecorderActivity.VIDEO_URI);
        String imgUrl = intent.getStringExtra(MediaRecorderActivity.VIDEO_SCREENSHOT);
        textView.setText(videoUrl);
        textView2.setText(imgUrl);
        File file=new File(videoUrl);//这个就是你要上传的视频文件
        Log.e("wshx", "onCreate:   "+file.getPath() );
    }
}
